package edu.hunau.cxb.controller;

import edu.hunau.cxb.mapper.UserMapper;
import edu.hunau.cxb.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author hb
 * @create 2020-04-21 10:24
 */
@RestController
public class UserManangerController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/queryAll")
    public List<User> lists( ){
        return userMapper.queryAll();
    }
}
